package com.grt.admin.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import com.grt.common.exception.WebException;

/**
 * @author recivejt 该controller只负责页面的跳转，不执行任何业务逻辑
 */
@Controller
@RequestMapping(value = "/admin")
public class AdminController {

	/**
	 * 通用跳转 begin
	 **/
	@GetMapping("/index")
	public String index() throws WebException {
		return "admin/index";
	}

	@GetMapping("/")
	public String acqin() throws WebException {
		return "admin/index";
	}

	@GetMapping("/header")
	public String header() throws WebException {
		return "admin/common/header";
	}

	@GetMapping("/common")
	public String common() throws WebException {
		return "admin/common/common";
	}

	@GetMapping("/menu")
	public String menu() throws WebException {
		return "admin/menu";
	}

	@GetMapping("/main")
	public String main() throws WebException {
		return "admin/main";
	}

	@RequestMapping("/login")
	public String login() throws WebException {
		return "admin/login";
	}

	@GetMapping("/regist")
	public String regist() throws WebException {
		return "admin/register";
	}

	/**
	 * 通用跳转 end
	 **/

	/**
	 * 案列跳转 begin
	 * 
	 */
	@GetMapping("/caseaction")
	public String caseaction() throws WebException {
		return "admin/caseaction";
	}

	/**
	 * 案列跳转 end
	 * 
	 */

}
